package com.richapp.launcher.database.infrared.mode;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by jack on 2015/4/9 0009.
 * 品牌型号
 */

@DatabaseTable(tableName = "brandModel")
public class BrandModel {

    public static final  String BRAND_MODEL_TYPE_SYSTEM = "system";
    public static final  String BRAND_MODEL_TYPE_USER = "user";

    @DatabaseField(generatedId = true)
    private int brandModelId;   //主键

    @DatabaseField(columnName = "machineTypeId",uniqueCombo = true,canBeNull = false)
    private int machineTypeId;  //类型ID

    @DatabaseField(columnName = "brandId",uniqueCombo = true,canBeNull = false)
    private int brandId;    //品牌ID

    @DatabaseField(columnName = "modelName",uniqueCombo = true,canBeNull = false)
    private String modelName;   //型号名

    @DatabaseField(columnName = "modelType",canBeNull = false,defaultValue = "system")
    private String modelType;   //型号添加类型

    public BrandModel(){

    }

    public int getBrandModelId() {
        return brandModelId;
    }

    public void setBrandModelId(int brandModelId) {
        this.brandModelId = brandModelId;
    }

    public int getMachineTypeId() {
        return machineTypeId;
    }

    public void setMachineTypeId(int machineTypeId) {
        this.machineTypeId = machineTypeId;
    }

    public int getBrandId() {
        return brandId;
    }

    public void setBrandId(int brandId) {
        this.brandId = brandId;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getModelType() {
        return modelType;
    }

    public void setModelType(String modelType) {
        this.modelType = modelType;
    }
}
